<?php get_header() ?>
<?php if ( function_exists('mim_mobile_adsense') ) mim_mobile_adsense(); ?>
<div id="c">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
	<h2><?php the_title() ?></h2>
	<p class="em"><?php printf( __( 'By %1$s<br />Posted on %2$s at %3$s', 'mim' ),
		get_the_author(),
		the_date( '', '', '', false ),
		get_the_time() ); edit_post_link( __( 'Edit', 'mim' ), ' | ', '' ); ?></p>
<?php if ( is_attachment() ) { ?>
	<?php the_attachment_link( $post->ID, false, array( 60, 80 ) ) ?>
<?php } else { ?>
	<?php the_content() ?>
	<?php wp_link_pages('before=<p class="pp">' . __( 'Pages: ', 'mim' ) . '&after=</p>') ?>
<?php } ?>
	<p class="em"><?php printf( __( 'Categories: %1$s%2$s', 'mim' ),
		get_the_category_list( ' | ' ),
		get_the_tag_list( __( '<br />Tags: ', 'mim' ), ' | ', '') ) ?></p>
	<?php if ( 'open' == $post-> comment_status ) _e( '<p><a href="#respond" title="Jump to post a comment">Post a comment</a></p>', 'mim' ); ?>
<?php comments_template(); endwhile; ?>
	<div class="nav"><?php next_post_link( '%link | ', '&#171; Newer post' ); previous_post_link( '%link', 'Older post &#187;' ) ?></div>
<?php else: ?>
	<h2><?php _e( 'Not Found', 'mim' ) ?></h2>
	<p><?php _e( 'Apologies. The post you\'re looking for doesn\'t seem to be here.', 'mim' ) ?></p>
<?php endif; ?>
</div>
<?php get_footer() ?>